﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace anpr.Models
{
    
    //[Bind(Exclude="officerID")]
    public class Officer
    {
        [ConcurrencyCheck]      
        [ScaffoldColumn(false)]
        [Key]
        public int officerID { get; set; }

        [Required(ErrorMessage = "First Name is required")]
        [DisplayName("First Name")]
        [StringLength(45)]
        public string firstName { get; set; }

        [DisplayName("Middle Name")]
        [StringLength(45)]
        public string midName { get; set; }

        [Required(ErrorMessage = "Last Name is required")]
        [DisplayName("Last Name")]
        [StringLength(45)]
        public string lastName { get; set; }

        [Required(ErrorMessage = "Date of birth is required")]
        [DisplayName("DOB")]
        public DateTime DOB { get; set; }

        [DisplayName("Street")]
        [StringLength(45)]
        public string street { get; set; }

        [DisplayName("Suburb")]
        [StringLength(45)]
        public string suburb { get; set; }

        [DisplayName("State")]
        [StringLength(45)]
        public string state { get; set; }

        [DisplayName("Postcode")]
        [StringLength(4)]
        public string postcode { get; set; }

        [DisplayName("Phone Number")]
        [StringLength(10)]
        public string phoneNumber { get; set; }

        [DisplayName("Mobile Number")]
        [StringLength(10)]
        public string mobileNumber { get; set; }

        [DisplayName("Posting")]
        [StringLength(45)]
        public string posting { get; set; }

        [ScaffoldColumn(false)]
        [DisplayName("Created date")]
        public System.DateTime createDate { get; set; }

    }
}